package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class CategoryUpdateInfoParam implements Serializable {
    @NotNull(message = "必须提交分类的名字")
    @ApiModelProperty(value = "分类名称",required = true,example = "dada的分类")
    private String name;

    @ApiModelProperty(value = "分类关键字",required = true,example = "关键字")
    private String keywords;
    @Range(max = 99,message = "序号必须是0-99")
    @NotNull(message = "必须提交品牌的排序号")
    @ApiModelProperty(value = "品牌序号",required = true,example = "45")
    private Integer sort;
    @ApiModelProperty(value = "分类网址",required = true,example = "http://...")
    private String icon;





}
